package com.SingleSeckill;


import com.SingleSeckill.dao.UserDOMapper;
import com.SingleSeckill.dataobject.UserDO;
import com.SingleSeckill.dataobject.UserDO;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@SpringBootApplication(scanBasePackages = {"com.SingleSeckill"})
@MapperScan("com.SingleSeckill.dao")
public class App{
   /* @Autowired
    private UserDOMapper userDOMapper;*/

    /*@RequestMapping("/")
    public String home(){
        UserDO userDO = userDOMapper.selectByPrimaryKey(1);
        System.out.println("开始查询用户信息");
        if (userDO==null){
            return "用户对象不存在";
        }else {
            return userDO.getName();
        }
    }*/

    public static void main( String[] args )
    {
        SpringApplication.run(App.class,args);
    }
}
